import com.woniuxy.services.OrderService;
import com.woniuxy.services.impl.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * @Classname test1
 * @Date 2024/1/18 11:51
 */

public class test1 {

    public static void main(String[] args) {
        Date date = new Date();
        Date date1 = new Date(2024 - 1900, 0, 19,12,02);
        System.out.println(date1);
        long l = date1.getTime() - date.getTime();
        long l1 = l / 1000 / 3600;
        if (l/1000%3600>0){
            l1 +=1;
        }
        System.out.println(l1);

    }


}

